package org.yefei.homeworkday04;

import java.util.Scanner;

public class LiuGrade {

	public static void main(String[] args) {
		// 1:输入小刘 语文和数学的成绩。
		// 如果两门课成绩差超过10分，则输出偏科；否则输出不偏科
		String str = "";
		Scanner sc = new Scanner(System.in);
		System.out.println("小刘的语文成绩是：");
		double chinese = sc.nextDouble();
		System.out.println("小刘的数学成绩：");
		double math = sc.nextInt();
		if (chinese >= 0 && chinese <= math && math <= 100) {
			str = math - chinese > 10 ? "偏科（数学强）" : "不偏科";
			System.out.println(str);
		} else if (math >= 0 && math <= chinese && chinese <= 100) {
			str = chinese - math > 10 ? "偏科（语文强）" : "不偏科";
			System.out.println(str);
		} else {
			System.out.println("成绩有误！");
		}
	}

}
